<?php

namespace app\store\model;

use think\Model;

class DermemberProfitBill extends Model
{
    protected $name = 'dermember_profit_bill';

    // 定义主键
    protected $pk = 'bill_id';

    /**
     * 查询
     * @param string $field 查询字段
     * @param array|string $where 条件
     */
    public static function getList($where = [], $limit = 15, $page = 1): array
    {
        return self::field('*')
            ->where($where)
            ->order('bill_id','desc')
            ->paginate($limit)
            ->toArray();
    }
}
